<template>
  <div>
    <Product :data='productList' classify='时尚美妆' :ishav="true"></Product>
  </div>
</template>
<script>
import Product from './components/product_category.vue'
import { category } from '@/api/product.js'
import { ref } from '@vue/reactivity'
export default {
  name:'beauty',
  setup(){
    let productList = ref()
    category('时尚美妆').then(res =>{
      productList.value = res.data.data
      // console.log(productList);
    })
    return {
      productList
    }
  },
  components:{
    Product
  }
}
</script>
<style scoped>
</style>